<div appBsModal #editContentModal="bs-modal" class="modal fade" [ngClass]="modalExpandOb.className" tabindex="-1" role="dialog"
     aria-labelledby="editModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <form #finanicalProductForm="ngForm" novalidate >
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="id">{{'Edit' | localize}}</span>
                    </h4>
                    <span class="pull-right">
                        <a class="btn btn-smallEx" (click)='modalExpandOb.modalExHandle("small")'>
                            <i class="bi bi-arrows-angle-expand" *ngIf="!modalExpandOb.isSmallEx"></i>
                            <i class="bi bi-arrows-angle-contract" *ngIf="modalExpandOb.isSmallEx"></i>
                        </a>
                        <a class="btn btn-fullscreen" (click)='modalExpandOb.modalExHandle("full")'>
                            <i class="bi bi-arrows-fullscreen" *ngIf="!modalExpandOb.isFullScreen"></i>
                            <i class="bi bi-fullscreen-exit" *ngIf="modalExpandOb.isFullScreen"></i>
                        </a>
                        <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')"
                            [disabled]="saving">
                            <i aria-hidden="true" class="bi bi-x"></i>
                        </button>
                    </span>
                </div>
                <div class="modal-body"  [busyIf]="isLoading">
                    <ng-container #vc></ng-container>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-default font-weight-bold"
                            (click)="close()">
                        {{"Cancel" | localize}}
                    </button>

                    <button [disabled]="saving" type="button" class="btn btn-primary blue"  *ngIf="(permissionDic['Pages_Manage_Content_Create'] || permissionDic['Pages_Manage_Content_Update']) && !pageConfig.disablePreview" (click)="preview()">{{"Preview" | localize}}</button>
                    <button type="button" class="btn btn-primary blue" *ngIf="dataSynchronous && permissionDic['Pages_Manage_Content_Synchorization'] && id" (click)="synchorizationById()">{{"ManualSynchorization" | localize}}</button>
                    <button type="button" class="btn btn-primary blue" *ngIf="dataSynchronous && permissionDic['Pages_Manage_Content_Synchorization'] && !id" (click)="synchorization()">{{"ManualSynchorization" | localize}}</button>

                    <button type="button" class="btn btn-primary blue" [disabled]="!finanicalProductForm.form.valid" *ngIf="permissionDic['Pages_Manage_Content_Create'] && !id"  [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')" (click)="save()"><i class="fa fa-save"></i>{{"Save" | localize}}</button>
                    <button type="button" class="btn btn-primary blue" [disabled]="!finanicalProductForm.form.valid" *ngIf="id && permissionDic['Pages_Manage_Content_Update'] && (!data.isActive ||permissionDic['Pages_Manage_Content_Publish'])"  [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')" (click)="save()"><i class="fa fa-save"></i>{{"Save" | localize}}</button>
                    <button type="button" class="btn btn-primary blue" *ngIf="permissionDic['Pages_Manange_Tenant_Seo'] && id && pageConfig.diySeo" (click)="goSeoModal()">SEO</button>
                </div>
            </form>
        </div>
    </div>
</div>
